//控制菜单弹出
document.getElementById('receiveMonth').addEventListener('tap', function () {
    mui('#sheet').popover('toggle');
});
//选择本月和下月
document.getElementById('currentMonth').addEventListener('tap', function () {
    document.getElementById('receiveMonth').value = this.innerText;
    mui('#sheet').popover('hide');
});
document.getElementById('nextMonth').addEventListener('tap', function () {
    document.getElementById('receiveMonth').value = this.innerText;
    mui('#sheet').popover('hide');
});
//点击确认按钮
document.getElementById('done').addEventListener('tap', function () {
    //验证输入项是否为空
    if (document.getElementById('strCardCode').value == '') {
        document.getElementById('err-msg').innerHTML = '请输入卡号';
    } else if (document.getElementById('strCardPwd').value == '') {
        document.getElementById('err-msg').innerHTML = '请输入密码';
    } else if (document.getElementById('receiveMonth').value == '') {
        document.getElementById('err-msg').innerHTML = '请输入领酒日期';
    } else {
        document.getElementById('err-msg').innerHTML = '';
        //提交请求

    }
})